home *** CD-ROM | disk | FTP | other *** search
Wrap
// // $VER: Area.h 1.2 (02 Sep 1996) // // c 1996 Thomas Wilhelmi // // // Address : Taunusstrasse 14 // 61138 Niederdorfelden // Germany // // E-Mail : willi@twi.rhein-main.de // // Phone : +49 (0)6101 531060 // Fax : +49 (0)6101 531061 // // // $HISTORY: // // 16 Jun 1996 : 1.0 : first public Release // // 27 Jul 1996 : 1.1 : Neu: // - Die Drag&Drop-Methoden sind hinzugefügt worden. // // 02 Sep 1996 : 1.2 : Neu: // - Die Methoden DrawBackground und HandleEvent sind für // MUI 3.6 hinzugefügt worden. // - ClassNum() für Exception-Handling. // Änderungen: // - Die Methode ObjectID() wurde wegen MUI 3.6 nach // MUINotify verschoben. // - Parameter des Copy-Konstruktor als 'const'-Parameter definiert // #ifndef CPP_TWIMUI_AREA_H #define CPP_TWIMUI_AREA_H #ifndef CPP_TWIMUI_NOTIFY_H #include <classes/twimui/notify.h> #endif #ifndef CPP_TWIMUI_WINDOW_H #include <classes/twimui/window.h> #endif class MUIArea : public MUINotify { protected: virtual const ULONG ClassNum() const; MUIArea(const STRPTR cl) : MUINotify(cl) { }; public: MUIArea(const struct TagItem *t) : MUINotify(MUIC_Area) { init(t); }; MUIArea(const Tag, ...); MUIArea() : MUINotify(MUIC_Area) { }; MUIArea(const MUIArea &); virtual ~MUIArea(); MUIArea &operator= (const MUIArea &p); void Background(const LONG p) { set(MUIA_Background,(ULONG)p); }; LONG BottomEdge() const { return((LONG)get(MUIA_BottomEdge,0L)); }; void ContextMenu(const Object *p) { set(MUIA_ContextMenu,(ULONG)p); }; Object *ContextMenu() const { return((Object *)get(MUIA_ContextMenu)); }; Object *ContextMenuTrigger() const { return((Object *)get(MUIA_ContextMenuTrigger)); }; void ControlChar(const UBYTE p) { set(MUIA_ControlChar,(ULONG)p); }; UBYTE ControlChar() const { return((UBYTE)get(MUIA_ControlChar)); }; void CycleChain(const LONG p) { set(MUIA_CycleChain,(ULONG)p); }; LONG CycleChain() const { return((LONG)get(MUIA_CycleChain,0L)); }; void Disabled(const BOOL p) { set(MUIA_Disabled,(ULONG)p); }; BOOL Disabled() const { return((BOOL)get(MUIA_Disabled,FALSE)); }; void Draggable(const BOOL p) { set(MUIA_Draggable,(ULONG)p); }; BOOL Draggable() const { return((BOOL)get(MUIA_Draggable,FALSE)); }; void Dropable(const BOOL p) { set(MUIA_Dropable,(ULONG)p); }; BOOL Dropable() const { return((BOOL)get(MUIA_Dropable,FALSE)); }; struct TextFont *Font() const { return((struct TextFont *)get(MUIA_Font)); }; LONG Height() const { return((LONG)get(MUIA_Height,0L)); }; void HorizDisappear(const LONG p) { set(MUIA_HorizDisappear,(ULONG)p); }; LONG HorizDisappear() const { return((LONG)get(MUIA_HorizDisappear,0L)); }; LONG LeftEdge() const { return((LONG)get(MUIA_LeftEdge,0L)); }; BOOL Pressed() const { return((BOOL)get(MUIA_Pressed,FALSE)); }; LONG RightEdge() const { return((LONG)get(MUIA_RightEdge,0L)); }; void Selected(const BOOL p) { set(MUIA_Selected,(ULONG)p); }; BOOL Selected() const { return((BOOL)get(MUIA_Selected,FALSE)); }; void ShortHelp(const STRPTR p) { set(MUIA_ShortHelp,(ULONG)p); }; STRPTR ShortHelp() const { return((STRPTR)get(MUIA_ShortHelp)); }; void ShowMe(const BOOL p) { set(MUIA_ShowMe,(ULONG)p); }; BOOL ShowMe() const { return((BOOL)get(MUIA_ShowMe,FALSE)); }; LONG Timer() const { return((LONG)get(MUIA_Timer,0L)); }; LONG TopEdge() const { return((LONG)get(MUIA_TopEdge,0L)); }; void VertDisappear(const LONG p) { set(MUIA_VertDisappear,(ULONG)p); }; LONG VertDisappear() const { return((LONG)get(MUIA_VertDisappear,0L)); }; LONG Width() const { return((LONG)get(MUIA_Width,0L)); }; struct Window *WindowP() const { return((struct Window *)get(MUIA_Window)); }; Object *WinObject() const { return((Object *)get(MUIA_WindowObject)); }; Object *ContextMenuBuild(LONG p1, LONG p2) { return((Object *)dom(MUIM_ContextMenuBuild,(ULONG)p1,(ULONG)p2)); }; void ContextMenuChoice(Object *p) { dom(MUIM_ContextMenuChoice,(ULONG)p); }; void DragBegin(Object *p) { dom(MUIM_DragBegin,(ULONG)p); }; void DragDrop(Object *p1, LONG p2, LONG p3) { dom(MUIM_DragDrop,(ULONG)p1,(ULONG)p2,(ULONG)p3); }; void DragFinish(Object *p) { dom(MUIM_DragFinish,(ULONG)p); }; void DragQuery(Object *p) { dom(MUIM_DragQuery,(ULONG)p); }; void DragReport(Object *p1, LONG p2, LONG p3, LONG p4) { dom(MUIM_DragReport,(ULONG)p1,(ULONG)p2,(ULONG)p3,(ULONG)p4); }; void Draw(ULONG p) { dom(MUIM_Draw,p); }; void Drawbackground(LONG p1, LONG p2, LONG p3, LONG p4, LONG p5, LONG p6, LONG p7) { dom(MUIM_DrawBackground,(ULONG)p1,(ULONG)p2,(ULONG)p3,(ULONG)p4,(ULONG)p5,(ULONG)p6,(ULONG)p7); }; LONGBITS HandleEvent(struct IntuiMessage *p1, LONG p2) { return((LONGBITS)dom(MUIM_HandleEvent,(ULONG)p1,(ULONG)p2)); }; MUIWindow *WinClass() const; }; #endif